package com.qa.dom.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.qa.dom.entity.Usertable;
import com.qa.dom.mapper.ReturnplayMapper;
import com.qa.dom.entity.Returnplay;
import com.qa.dom.service.IReturnplayService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 回放表 服务实现类
 * </p>
 *
 * @author cxj
 * @since 2018-04-24
 */
@Service
public class ReturnplayServiceImpl extends ServiceImpl<ReturnplayMapper, Returnplay> implements IReturnplayService {

    @Resource
    ReturnplayMapper mapper;

    public Page<Returnplay> queryReturnPlayPage(Page<Returnplay> page, Usertable usertable){
       List list =  mapper.queryReturnPlayPage(page,usertable);
       page.setTotal(list.size());
       page.setRecords(list);
       return page;
    }
}
